<template>
  <div class="list">
    <div class="headline">
      <h3>Foreign Affairs News</h3>
      <router-link to="/ForeignNews" tag="div" class="button">more</router-link>
    </div>
    <ul class="thumbnails">
      <li class="span3">
        <div class="thumbnails-style thumbnails-kenburn">
          <div class="thumbnails-img">
            <div class="overflow-hidden">
              <img src="../../../assets/imgs/home/news/img1.jpg" alt="">
            </div>
            <router-link to="/PictureContent" tag="a" class="btn-more hover-effect">read more +</router-link>
          </div>
          <h3>
            <router-link to="/PictureContent" tag="a" class="hover-effect">The News Title</router-link>
          </h3>
          <p>
            The news content.This is a container for news.This is a container for news content.The news content. This is a container for news content.This is a container for news content.
          </p>
        </div>
      </li>
      <li class="span3">
        <div class="thumbnails-style thumbnails-kenburn">
          <div class="thumbnails-img">
            <div class="overflow-hidden">
              <img src="../../../assets/imgs/home/news/img6.jpg" alt="">
            </div>
            <router-link to="/PictureContent" tag="a" class="btn-more hover-effect">read more +</router-link>
          </div>
          <h3>
            <router-link to="/PictureContent" tag="a" class="hover-effect">The News Title</router-link>
          </h3>
          <p>
            The news content.This is a container for news.This is a container for news content.The news content. This is a container for news content.This is a container for news content.
          </p>
        </div>
      </li>
      <li class="span3">
        <div class="thumbnails-style thumbnails-kenburn">
          <div class="thumbnails-img">
            <div class="overflow-hidden">
              <img src="../../../assets/imgs/home/news/img8.jpg" alt="">
            </div>
            <router-link to="/PictureContent" tag="a" class="btn-more hover-effect">read more +</router-link>
          </div>
          <h3>
            <router-link to="/PictureContent" tag="a" class="hover-effect">The News Title</router-link>
          </h3>
          <p>
            The news content.This is a container for news.This is a container for news content.The news content. This is a container for news content.This is a container for news content.
          </p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
import HeadTitle from '../../../components/headtitle'
export default {
  name: 'HomePhotolist',
  components: {
    HeadTitle
  }
}
</script>

<style lang="scss" scoped>
.list {
  width: 1340px;
  margin: auto;
    .headline {
    display: block;
    margin: 60px 0 35px 0;
    border-bottom: 1.5px dotted #e4e9f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    h3 {
      color: #585f69;
      margin: 0 0 -2px 0;
      padding-right: 10px;
      display: inline-block;
      font-size: 23px;
      font-weight: 500;
      line-height: 54px;
      text-shadow: 0 0 1px #f6f6f6;
      border-bottom: 2px solid #72c02c;
    }
    .button {
      width: 76px;
      height: 30px;
      border-radius: 2px 2px 2px 2px;
      background-color: #567f32;
      color: #fff;
      font-size: 16px;
      padding: 4px 18px;
      box-sizing: border-box;
      cursor: pointer;
      transition: all .3s linear;
      &:hover {
        background-color: #72c02c;
      }
    }
  }
  .thumbnails {
    // width: 1783px;
    height: 420px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    // background-color: antiquewhite;
    .span3 {
      width: 390px;
      height: 520px;
      // background-color: azure;
      .thumbnails-style {
        padding: 12px;
        transition: all .4s linear;
        &:hover {
          box-shadow: 1px 1px 12px #ddd;
        }
        &:hover a.btn-more {
          box-shadow:0 0 0 2px #377500;
          right: 10px;
        }
        &:hover img{
          transform: scale(1.2) rotate(2deg);
        }
        .thumbnails-img {
          position: relative;
          .overflow-hidden {
            overflow: hidden;
            img {
              width: 100%;
              height: 100%;
              left: 15px;
              margin-left: -15px;
              position: relative;
              transition: all .8s linear;
            }
          }
          .btn-more {
            background: #72c02c;
            right: -15px;
            bottom: 20px;
            color: #fff;
            padding: 6px 8px;
            font-size: 12px;
            position: absolute;
            display: inline-block;
            text-decoration: none;
            transition: all .3s linear;
          }
        }
        h3 a{
          margin: 5px 0 0 0;
          color: #555;
          margin-top: 15px;
          font-size: 23px;
          line-height: 40px;
          text-decoration: none;
          font-weight: normal !important;
          transition: all .3s linear;
          &:hover {
            color: #72c02c;
            text-decoration: underline;
          }
        }
        p {
          color: #555;
          line-height: 1.6em;
          margin: 0 0 10px;
          font-size: 14px;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 3; //需要控制的文本行数
          overflow: hidden;
        }
      }
    }
  }
}
</style>
